package net.zhengxinyun.performance.mapper.departClass;

import net.zhengxinyun.performance.entity.DepartClassItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartClassItemMapper {

    List<DepartClassItem> queryItem(DepartClassItem entity);
    List<DepartClassItem> queryByClassId(Long id);
    int update(DepartClassItem entity);
    int delete(Long id);
    int saveItems(List<DepartClassItem> list);

    List<DepartClassItem> queryDepartWeight(@Param("classId") String classId,@Param("datetime") String datetime);

    List<DepartClassItem> queryDepartAllWeight(@Param("classId") String classId,@Param("datetime") String datetime);

    int deleteByClassId(Long classId);

 }
